package com.google.shop.product.wxlogin.entity;

import java.util.Date;
//import org.apache.commons.configuration.tree.DefaultExpressionEngine;
//import org.apache.commons.configuration2.tree.DefaultExpressionEngine;

/* loaded from: app.jar:BOOT-INF/classes/com/google/shop/product/wxlogin/entity/AccessToken.class */
public class AccessToken {
    private String token;
    private Long endTime = 0L;

    public void setToken(String token) {
        this.token = token;
    }

    public void setEndTime(Long endTime) {
        this.endTime = endTime;
    }

    public boolean equals(Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof AccessToken)) {
            return false;
        }
        AccessToken other = (AccessToken) o;
        if (!other.canEqual(this)) {
            return false;
        }
        Object this$endTime = getEndTime();
        Object other$endTime = other.getEndTime();
        if (this$endTime == null) {
            if (other$endTime != null) {
                return false;
            }
        } else if (!this$endTime.equals(other$endTime)) {
            return false;
        }
        Object this$token = getToken();
        Object other$token = other.getToken();
        return this$token == null ? other$token == null : this$token.equals(other$token);
    }

    protected boolean canEqual(Object other) {
        return other instanceof AccessToken;
    }

    public int hashCode() {
        Object $endTime = getEndTime();
        int result = (1 * 59) + ($endTime == null ? 43 : $endTime.hashCode());
        Object $token = getToken();
        return (result * 59) + ($token == null ? 43 : $token.hashCode());
    }

//    public String toString() {
//        return "AccessToken(token=" + getToken() + ", endTime=" + getEndTime() + DefaultExpressionEngine.DEFAULT_INDEX_END;
//    }

    public String getToken() {
        return this.token;
    }

    public Long getEndTime() {
        return this.endTime;
    }

    public boolean isOut() {
        if (new Date().getTime() > this.endTime.longValue()) {
            return true;
        }
        return false;
    }
}
